const mongoose = require('mongoose');
const { baseModel } = require('./baseModel');
const fileSchema = new mongoose.Schema({
    name:{
        type:String,
        required:true
    },
    parentId:{
        type: String, 
        default:'0', //'0'为根目录
        ref:'File'
    },
    ...baseModel
})
module.exports = fileSchema;